// 文本溢出
textOverflow(hr = 1) {
    display: inline-block;

    if (hr == 1) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    } else {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: hr;
    }
}

// 弹性布局盒子
flexBox(justify = center, align = center, direction = row, flex-wrap = nowrap) {
    display: -webkit-flex;
    display: flex;

    if (justify != null) {
        justify-content: justify;
    }

    if (align != null) {
        align-items: align;
    }

    if (direction != null) {
        flex-direction: direction;
    }

    if (flex-wrap != null) {
        flex-wrap: flex-wrap;
    }
}

$color-bg = #2A3F54;
$color-danger = #f62d51;
$color-primary = #008ad3;
$color-success = #55ce63;
$color-info = #909399;
$color-warning = #e6a23c;

// 常用背景、底色色值-UI规范
$main-color = #FF4400; // 主色
$linear-color = #FC882D; // 渐变色

$color-white = #FFFFFF; // 白色
$color-black = #000000; // 黑色
$color-red = #FF4400; // 红色
$color-red-orange = #F5222D //橘红色
